$(function(){
  // CSS
  $("head").append('<link rel="stylesheet" href="http://ameblo-ev-js.googlecode.com/svn/trunk/ameblo4lightbox/jquery.lightbox-0.5.css" type="text/css" />');
  // javascript
  $.getScript("http://ameblo-ev-js.googlecode.com/svn/trunk/ameblo4lightbox/jquery.lightbox-0.5.min.js", function(){
      $('.contents .subContents a.detailOn').each(function(){
        var s = $(this).children('img').attr('src').replace(/\/[a-z]{1}[0-9]+_/, "/o");
        $(this).attr('href', s);
      });
      $('.contents .subContents a.detailOn').lightBox();
      
  });

});

